package com.xiaoge.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xiaoge.system.entity.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoge.system.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaoge
 * @since 2021-02-02
 */

@Repository
public interface DepartmentMapper extends BaseMapper<Department> {
    List<Department> findDeptAndCount();

    List<Department> getDeptAndCount(@Param(Constants.WRAPPER) QueryWrapper<Department> wrapper);
}
